export default {
    namespaced: true,
    state: {
        cartList: []
    },
    mutations: {
        upCartList(state: any, payload: any[]) {
            state.cartList = payload
        },
        fileCartListById(state: any, payload: any[]) {
            const ids = payload.map(v => v.cartItemId)
            state.cartList = state.cartList.filter((v: any) => !ids.includes(v.cartItemId))
        },
    },
    actions: {},
    modules: {},
};
